﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ModifyForm.cs" company="">
//   
// </copyright>
// <summary>
//   The modify form.
// </summary>
// --------------------------------------------------------------------------------------------------------------------


using System;
using System.Windows.Forms;

namespace Systemathics.UserControls
{
    /// <summary>
    /// The modify form.
    /// </summary>
    public partial class ModifyForm : Form
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ModifyForm"/> class.
        /// </summary>
        public ModifyForm()
        {
            InitializeComponent();
        }

        /// <summary>
        /// The modify form_ key down.
        /// </summary>
        /// <param name="sender">
        /// The sender.
        /// </param>
        /// <param name="e">
        /// The e.
        /// </param>
        private void ModifyForm_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
                Modifybutton_Click(sender, e);
        }

        /// <summary>
        /// The modifybutton_ click.
        /// </summary>
        /// <param name="sender">
        /// The sender.
        /// </param>
        /// <param name="e">
        /// The e.
        /// </param>
        private void Modifybutton_Click(object sender, EventArgs e)
        {
            Close();
        }
    }
}